package com.elizabeth;

import org.jfree.chart.ChartUtils;

import javax.swing.*;
import java.awt.*;


public class ExChartUtils extends ChartUtils {

    public static Image getExScaledInstance(ImageIcon imageIcon , int width, int height){
        imageIcon.setImage(imageIcon.getImage().getScaledInstance(width, height, Image.SCALE_DEFAULT));
        return imageIcon.getImage();
    }
}
